home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1998-06-18 | 3.6 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Thu Jun 18 12:48:47 1998, modified Thu Jun 18 12:48:47 1998, creator 'CWIE', type ASCII, 3010 bytes "Solution.p" , at 0xc42 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 6f 6c 75 74 69 | 6f 6e 2e 70 00 00 00 00 |..Soluti|on.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0b c2 00 | 00 01 9a b1 ae f5 6f b1 |........|......o.|
|00000060| ae f5 6f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..o.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2a 7c 00 00 |........|....*|..|
|00000080| 28 2a 0d 50 72 6f 62 6c | 65 6d 20 30 36 20 2d 20 |(*.Probl|em 06 - |
|00000090| 4c 65 67 61 6c 20 43 68 | 65 73 73 20 4d 6f 76 65 |Legal Ch|ess Move|
|000000a0| 73 0d 0d 44 65 65 70 20 | 54 68 6f 75 67 68 74 20 |s..Deep |Thought |
|000000b0| 68 61 73 20 62 65 61 74 | 65 6e 20 6d 61 6e 6b 69 |has beat|en manki|
|000000c0| 6e 64 20 61 73 20 74 68 | 65 20 67 61 6d 65 20 6f |nd as th|e game o|
|000000d0| 6e 63 65 20 74 68 6f 75 | 67 68 74 20 74 6f 20 65 |nce thou|ght to e|
|000000e0| 78 65 6d 70 6c 69 66 79 | 20 68 75 6d 61 6e 0d 69 |xemplify| human.i|
|000000f0| 6e 74 75 69 74 69 6f 6e | 2e 20 20 4f 75 72 20 4d |ntuition|. Our M|
|00000100| 61 63 48 61 63 6b 20 6c | 61 62 6f 72 61 74 6f 72 |acHack l|aborator|
|00000110| 79 20 69 73 20 73 65 63 | 72 65 74 6c 79 20 63 6f |y is sec|retly co|
|00000120| 6e 73 74 72 75 63 74 69 | 6e 67 20 61 6e 20 69 6d |nstructi|ng an im|
|00000130| 70 6c 61 6e 74 20 74 68 | 61 74 0d 77 69 6c 6c 20 |plant th|at.will |
|00000140| 6e 65 75 74 72 61 6c 69 | 7a 65 20 74 68 65 20 63 |neutrali|ze the c|
|00000150| 61 6c 63 75 6c 61 74 69 | 6f 6e 20 61 64 76 61 6e |alculati|on advan|
|00000160| 74 61 67 65 20 68 65 6c | 64 20 62 79 20 74 68 65 |tage hel|d by the|
|00000170| 20 63 6f 6d 70 75 74 65 | 72 2c 20 61 6e 64 20 72 | compute|r, and r|
|00000180| 65 73 74 6f 72 65 0d 6d | 61 6e 6b 69 6e 64 20 74 |estore.m|ankind t|
|00000190| 6f 20 69 74 73 20 72 69 | 67 68 74 66 75 6c 20 70 |o its ri|ghtful p|
|000001a0| 6c 61 63 65 20 61 73 20 | 74 68 65 20 63 68 61 6d |lace as |the cham|
|000001b0| 70 69 6f 6e 20 6f 66 20 | 63 68 65 73 73 2c 20 74 |pion of |chess, t|
|000001c0| 68 72 6f 75 67 68 20 69 | 6e 74 75 69 74 69 6f 6e |hrough i|ntuition|
|000001d0| 20 61 6e 64 0d 63 75 6e | 6e 69 6e 67 2e 20 20 59 | and.cun|ning. Y|
|000001e0| 6f 75 72 20 6a 6f 62 20 | 69 73 20 74 6f 20 77 72 |our job |is to wr|
|000001f0| 69 74 65 20 74 68 65 20 | 63 6f 64 65 20 74 68 61 |ite the |code tha|
|00000200| 74 20 77 69 6c 6c 20 63 | 61 6c 63 75 6c 61 74 65 |t will c|alculate|
|00000210| 20 74 68 65 20 62 6f 61 | 72 64 20 70 6f 73 69 74 | the boa|rd posit|
|00000220| 69 6f 6e 0d 72 65 73 75 | 6c 74 69 6e 67 20 66 72 |ion.resu|lting fr|
|00000230| 6f 6d 20 61 20 73 65 71 | 75 65 6e 63 65 20 6f 66 |om a seq|uence of|
|00000240| 20 6d 6f 76 65 73 2c 20 | 61 6c 6f 6e 67 20 77 69 | moves, |along wi|
|00000250| 74 68 20 74 68 65 20 6c | 65 67 61 6c 20 6d 6f 76 |th the l|egal mov|
|00000260| 65 73 20 61 76 61 69 6c | 61 62 6c 65 20 74 6f 20 |es avail|able to |
|00000270| 74 68 65 0d 6e 65 78 74 | 20 70 6c 61 79 65 72 2e |the.next| player.|
|00000280| 20 20 57 69 74 68 20 74 | 68 69 73 20 61 64 76 61 | With t|his adva|
|00000290| 6e 74 61 67 65 2c 20 74 | 68 65 20 68 75 6d 61 6e |ntage, t|he human|
|000002a0| 20 63 68 65 73 73 20 6d | 61 73 74 65 72 20 77 69 | chess m|aster wi|
|000002b0| 6c 6c 20 62 65 20 61 62 | 6c 65 20 74 6f 0d 63 6f |ll be ab|le to.co|
|000002c0| 6e 63 65 6e 74 72 61 74 | 65 20 6f 6e 20 73 74 72 |ncentrat|e on str|
|000002d0| 61 74 65 67 79 2c 20 72 | 61 74 68 65 72 20 74 68 |ategy, r|ather th|
|000002e0| 61 6e 20 77 61 73 74 65 | 20 74 69 6d 65 20 63 61 |an waste| time ca|
|000002f0| 6c 63 75 6c 61 74 69 6e | 67 20 6d 6f 76 65 73 2e |lculatin|g moves.|
|00000300| 0d 0d 54 68 65 20 70 72 | 6f 74 6f 74 79 70 65 20 |..The pr|ototype |
|00000310| 66 6f 72 20 79 6f 75 72 | 20 73 6f 6c 75 74 69 6f |for your| solutio|
|00000320| 6e 20 69 73 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |n is as |follows:|
|00000330| 0d 0d 74 79 70 65 64 65 | 66 20 65 6e 75 6d 20 7b |..typede|f enum {|
|00000340| 6b 45 6d 70 74 79 3d 30 | 2c 6b 57 68 69 74 65 2c |kEmpty=0|,kWhite,|
|00000350| 6b 42 6c 61 63 6b 7d 20 | 50 69 65 63 65 43 6f 6c |kBlack} |PieceCol|
|00000360| 6f 72 3b 0d 74 79 70 65 | 64 65 66 20 65 6e 75 6d |or;.type|def enum|
|00000370| 20 7b 6b 4e 6f 6e 65 3d | 30 2c 6b 50 61 77 6e 2c | {kNone=|0,kPawn,|
|00000380| 6b 4b 6e 69 67 68 74 2c | 6b 42 69 73 68 6f 70 2c |kKnight,|kBishop,|
|00000390| 6b 52 6f 6f 6b 2c 6b 51 | 75 65 65 6e 2c 6b 4b 69 |kRook,kQ|ueen,kKi|
|000003a0| 6e 67 7d 20 50 69 65 63 | 65 52 61 6e 6b 3b 0d 0d |ng} Piec|eRank;..|
|000003b0| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 53 |typedef |struct S|
|000003c0| 71 75 61 72 65 20 7b 0d | 09 55 49 6e 74 31 36 20 |quare {.|.UInt16 |
|000003d0| 72 6f 77 3b 09 2f 2f 20 | 30 2e 2e 37 2c 20 77 68 |row;.// |0..7, wh|
|000003e0| 69 74 65 20 69 6e 69 74 | 69 61 6c 6c 79 20 6f 63 |ite init|ially oc|
|000003f0| 63 75 70 69 65 73 20 72 | 6f 77 73 20 30 20 61 6e |cupies r|ows 0 an|
|00000400| 64 20 31 2c 20 62 6c 61 | 63 6b 20 37 20 61 6e 64 |d 1, bla|ck 7 and|
|00000410| 20 36 0d 09 55 49 6e 74 | 31 36 20 63 6f 6c 3b 09 | 6..UInt|16 col;.|
|00000420| 2f 2f 20 30 2e 2e 37 2c | 20 77 68 69 74 65 20 6b |// 0..7,| white k|
|00000430| 69 6e 67 20 73 74 61 72 | 74 73 20 61 74 20 28 72 |ing star|ts at (r|
|00000440| 6f 77 2c 63 6f 6c 29 20 | 3d 3d 20 28 30 2c 34 29 |ow,col) |== (0,4)|
|00000450| 0d 7d 20 53 71 75 61 72 | 65 3b 0d 0d 74 79 70 65 |.} Squar|e;..type|
|00000460| 64 65 66 20 73 74 72 75 | 63 74 20 43 68 65 73 73 |def stru|ct Chess|
|00000470| 4d 6f 76 65 20 7b 0d 09 | 53 71 75 61 72 65 20 66 |Move {..|Square f|
|00000480| 72 6f 6d 53 71 75 61 72 | 65 3b 0d 09 53 71 75 61 |romSquar|e;..Squa|
|00000490| 72 65 20 74 6f 53 71 75 | 61 72 65 3b 0d 09 42 6f |re toSqu|are;..Bo|
|000004a0| 6f 6c 65 61 6e 20 63 61 | 70 74 75 72 65 3b 0d 09 |olean ca|pture;..|
|000004b0| 53 71 75 61 72 65 20 63 | 61 70 74 75 72 65 64 53 |Square c|apturedS|
|000004c0| 71 75 61 72 65 3b 09 2f | 2f 20 76 61 6c 69 64 20 |quare;./|/ valid |
|000004d0| 6f 6e 6c 79 20 69 66 20 | 63 61 70 74 75 72 65 3d |only if |capture=|
|000004e0| 3d 54 52 55 45 0d 7d 20 | 43 68 65 73 73 4d 6f 76 |=TRUE.} |ChessMov|
|000004f0| 65 3b 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |e;..type|def stru|
|00000500| 63 74 20 43 68 65 73 73 | 50 69 65 63 65 20 7b 0d |ct Chess|Piece {.|
|00000510| 09 50 69 65 63 65 43 6f | 6c 6f 72 20 77 68 69 63 |.PieceCo|lor whic|
|00000520| 68 43 6f 6c 6f 72 3b 0d | 09 50 69 65 63 65 52 61 |hColor;.|.PieceRa|
|00000530| 6e 6b 20 77 68 69 63 68 | 52 61 6e 6b 3b 0d 09 53 |nk which|Rank;..S|
|00000540| 71 75 61 72 65 20 70 69 | 65 63 65 4c 6f 63 61 74 |quare pi|eceLocat|
|00000550| 69 6f 6e 3b 0d 7d 20 43 | 68 65 73 73 50 69 65 63 |ion;.} C|hessPiec|
|00000560| 65 3b 0d 0d 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |e;..pasc|al void |
|00000570| 46 69 6e 64 4c 65 67 61 | 6c 43 68 65 73 73 4d 6f |FindLega|lChessMo|
|00000580| 76 65 73 28 0d 09 55 49 | 6e 74 33 32 20 6e 75 6d |ves(..UI|nt32 num|
|00000590| 50 72 69 6f 72 4d 6f 76 | 65 73 2c 0d 09 43 68 65 |PriorMov|es,..Che|
|000005a0| 73 73 4d 6f 76 65 20 70 | 72 69 6f 72 4d 6f 76 65 |ssMove p|riorMove|
|000005b0| 73 5b 5d 2c 0d 09 55 49 | 6e 74 33 32 20 2a 6e 75 |s[],..UI|nt32 *nu|
|000005c0| 6d 50 69 65 63 65 73 52 | 65 6d 61 69 6e 69 6e 67 |mPiecesR|emaining|
|000005d0| 2c 0d 09 43 68 65 73 73 | 50 69 65 63 65 20 70 69 |,..Chess|Piece pi|
|000005e0| 65 63 65 73 52 65 6d 61 | 69 6e 69 6e 67 5b 5d 2c |ecesRema|ining[],|
|000005f0| 0d 09 55 49 6e 74 33 32 | 20 2a 6e 75 6d 4c 65 67 |..UInt32| *numLeg|
|00000600| 61 6c 4d 6f 76 65 73 2c | 0d 09 43 68 65 73 73 4d |alMoves,|..ChessM|
|00000610| 6f 76 65 20 6c 65 67 61 | 6c 4d 6f 76 65 73 5b 5d |ove lega|lMoves[]|
|00000620| 0d 29 3b 0d 0d 59 6f 75 | 72 20 46 69 6e 64 4c 65 |.);..You|r FindLe|
|00000630| 67 61 6c 43 68 65 73 73 | 4d 6f 76 65 73 20 72 6f |galChess|Moves ro|
|00000640| 75 74 69 6e 65 20 77 69 | 6c 6c 20 62 65 20 63 61 |utine wi|ll be ca|
|00000650| 6c 6c 65 64 20 77 69 74 | 68 20 61 20 6c 69 73 74 |lled wit|h a list|
|00000660| 20 28 70 72 69 6f 72 4d | 6f 76 65 73 29 20 6f 66 | (priorM|oves) of|
|00000670| 0d 6e 75 6d 50 72 69 6f | 72 4d 6f 76 65 73 20 74 |.numPrio|rMoves t|
|00000680| 68 61 74 20 68 61 76 65 | 20 61 6c 72 65 61 64 79 |hat have| already|
|00000690| 20 74 61 6b 65 6e 20 70 | 6c 61 63 65 20 66 72 6f | taken p|lace fro|
|000006a0| 6d 20 74 68 65 20 6e 6f | 72 6d 61 6c 20 69 6e 69 |m the no|rmal ini|
|000006b0| 74 69 61 6c 20 63 68 65 | 73 73 62 6f 61 72 64 2e |tial che|ssboard.|
|000006c0| 0d 59 6f 75 20 73 68 6f | 75 6c 64 20 6d 6f 64 65 |.You sho|uld mode|
|000006d0| 6c 20 74 68 65 20 65 66 | 66 65 63 74 73 20 6f 66 |l the ef|fects of|
|000006e0| 20 74 68 6f 73 65 20 6d | 6f 76 65 73 20 61 6e 64 | those m|oves and|
|000006f0| 20 67 65 6e 65 72 61 74 | 65 20 61 20 6c 69 73 74 | generat|e a list|
|00000700| 0d 28 70 69 65 63 65 73 | 52 65 6d 61 69 6e 69 6e |.(pieces|Remainin|
|00000710| 67 29 20 6f 66 20 74 68 | 65 20 6e 75 6d 50 69 65 |g) of th|e numPie|
|00000720| 63 65 73 52 65 6d 61 69 | 6e 69 6e 67 20 70 69 65 |cesRemai|ning pie|
|00000730| 63 65 73 20 72 65 6d 61 | 69 6e 69 6e 67 2c 20 69 |ces rema|ining, i|
|00000740| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 69 72 0d 6c |ncluding| their.l|
|00000750| 6f 63 61 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 62 |ocation |on the b|
|00000760| 6f 61 72 64 2c 20 61 6e | 64 20 61 20 6c 69 73 74 |oard, an|d a list|
|00000770| 20 28 6c 65 67 61 6c 4d | 6f 76 65 73 29 20 6f 66 | (legalM|oves) of|
|00000780| 20 61 6c 6c 20 6e 75 6d | 4c 65 67 61 6c 4d 6f 76 | all num|LegalMov|
|00000790| 65 73 20 6c 65 67 61 6c | 20 6d 6f 76 65 73 0d 61 |es legal| moves.a|
|000007a0| 76 61 69 6c 61 62 6c 65 | 20 74 6f 20 74 68 65 20 |vailable| to the |
|000007b0| 6e 65 78 74 20 70 6c 61 | 79 65 72 2e 20 20 59 6f |next pla|yer. Yo|
|000007c0| 75 20 73 68 6f 75 6c 64 | 20 66 6f 6c 6c 6f 77 20 |u should| follow |
|000007d0| 61 6c 6c 20 72 75 6c 65 | 73 20 6f 66 20 43 68 65 |all rule|s of Che|
|000007e0| 73 73 20 77 69 74 68 20 | 74 77 6f 0d 65 78 63 65 |ss with |two.exce|
|000007f0| 70 74 69 6f 6e 73 3a 20 | 73 74 61 6c 65 6d 61 74 |ptions: |stalemat|
|00000800| 65 73 20 63 61 6e 20 62 | 65 20 69 67 6e 6f 72 65 |es can b|e ignore|
|00000810| 64 2c 20 61 6e 64 20 70 | 61 77 6e 73 20 61 6c 77 |d, and p|awns alw|
|00000820| 61 79 73 20 62 65 63 6f | 6d 65 20 51 75 65 65 6e |ays beco|me Queen|
|00000830| 73 20 77 68 65 6e 0d 70 | 72 6f 6d 6f 74 65 64 2e |s when.p|romoted.|
|00000840| 20 20 52 65 6d 65 6d 62 | 65 72 20 74 6f 20 69 6e | Rememb|er to in|
|00000850| 63 6c 75 64 65 20 63 61 | 73 74 6c 69 6e 67 20 6d |clude ca|stling m|
|00000860| 6f 76 65 73 20 77 68 65 | 6e 20 61 70 70 72 6f 70 |oves whe|n approp|
|00000870| 72 69 61 74 65 20 28 69 | 6e 64 69 63 61 74 65 64 |riate (i|ndicated|
|00000880| 20 62 79 0d 6d 6f 76 69 | 6e 67 20 74 68 65 20 6b | by.movi|ng the k|
|00000890| 69 6e 67 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 |ing the |appropri|
|000008a0| 61 74 65 20 74 77 6f 2f | 74 68 72 65 65 20 73 71 |ate two/|three sq|
|000008b0| 75 61 72 65 73 29 20 61 | 6e 64 20 65 6e 20 70 61 |uares) a|nd en pa|
|000008c0| 73 73 61 6e 74 20 70 61 | 77 6e 0d 63 61 70 74 75 |ssant pa|wn.captu|
|000008d0| 72 65 73 2e 0d 2a 29 0d | 0d 75 6e 69 74 20 53 6f |res..*).|.unit So|
|000008e0| 6c 75 74 69 6f 6e 3b 0d | 0d 69 6e 74 65 72 66 61 |lution;.|.interfa|
|000008f0| 63 65 0d 0d 2f 2f 20 44 | 6f 20 6e 6f 74 20 6d 6f |ce..// D|o not mo|
|00000900| 64 69 66 79 20 74 68 65 | 20 69 6e 74 65 72 66 61 |dify the| interfa|
|00000910| 63 65 0d 0d 09 75 73 65 | 73 0d 09 09 54 79 70 65 |ce...use|s...Type|
|00000920| 73 2c 20 46 69 6c 65 73 | 3b 0d 09 09 0d 09 74 79 |s, Files|;.....ty|
|00000930| 70 65 20 50 69 65 63 65 | 43 6f 6c 6f 72 20 3d 20 |pe Piece|Color = |
|00000940| 55 49 6e 74 31 36 3b 0d | 09 74 79 70 65 20 50 69 |UInt16;.|.type Pi|
|00000950| 65 63 65 52 61 6e 6b 20 | 3d 20 55 49 6e 74 31 36 |eceRank |= UInt16|
|00000960| 3b 0d 09 74 79 70 65 20 | 53 71 75 61 72 65 20 3d |;..type |Square =|
|00000970| 20 72 65 63 6f 72 64 0d | 09 09 72 6f 77 3a 20 55 | record.|..row: U|
|00000980| 49 6e 74 31 36 3b 0d 09 | 09 63 6f 6c 3a 20 55 49 |Int16;..|.col: UI|
|00000990| 6e 74 31 36 3b 0d 09 09 | 65 6e 64 3b 0d 09 74 79 |nt16;...|end;..ty|
|000009a0| 70 65 20 43 68 65 73 73 | 4d 6f 76 65 20 3d 20 72 |pe Chess|Move = r|
|000009b0| 65 63 6f 72 64 0d 09 09 | 09 66 72 6f 6d 53 71 75 |ecord...|.fromSqu|
|000009c0| 61 72 65 3a 20 53 71 75 | 61 72 65 3b 0d 09 09 09 |are: Squ|are;....|
|000009d0| 74 6f 53 71 75 61 72 65 | 3a 20 53 71 75 61 72 65 |toSquare|: Square|
|000009e0| 3b 0d 09 09 09 63 61 70 | 74 75 72 65 3a 20 55 49 |;....cap|ture: UI|
|000009f0| 6e 74 31 36 3b 0d 09 09 | 09 63 61 70 74 75 72 65 |nt16;...|.capture|
|00000a00| 64 53 71 75 61 72 65 3a | 20 53 71 75 61 72 65 3b |dSquare:| Square;|
|00000a10| 0d 09 09 65 6e 64 3b 0d | 09 74 79 70 65 20 43 68 |...end;.|.type Ch|
|00000a20| 65 73 73 50 69 65 63 65 | 20 3d 20 72 65 63 6f 72 |essPiece| = recor|
|00000a30| 64 0d 09 09 09 77 68 69 | 63 68 43 6f 6c 6f 72 3a |d....whi|chColor:|
|00000a40| 20 50 69 65 63 65 43 6f | 6c 6f 72 3b 0d 09 09 09 | PieceCo|lor;....|
|00000a50| 77 68 69 63 68 52 61 6e | 6b 3a 20 50 69 65 63 65 |whichRan|k: Piece|
|00000a60| 52 61 6e 6b 3b 0d 09 09 | 09 70 69 65 63 65 4c 6f |Rank;...|.pieceLo|
|00000a70| 63 61 74 69 6f 6e 3a 20 | 53 71 75 61 72 65 3b 0d |cation: |Square;.|
|00000a80| 09 09 65 6e 64 3b 0d 0d | 09 74 79 70 65 20 43 68 |..end;..|.type Ch|
|00000a90| 65 73 73 4d 6f 76 65 41 | 72 72 61 79 20 3d 20 61 |essMoveA|rray = a|
|00000aa0| 72 72 61 79 20 5b 30 2e | 2e 30 5d 20 6f 66 20 43 |rray [0.|.0] of C|
|00000ab0| 68 65 73 73 4d 6f 76 65 | 3b 0d 09 74 79 70 65 20 |hessMove|;..type |
|00000ac0| 43 68 65 73 73 50 69 65 | 63 65 41 72 72 61 79 20 |ChessPie|ceArray |
|00000ad0| 3d 20 61 72 72 61 79 20 | 5b 30 2e 2e 30 5d 20 6f |= array |[0..0] o|
|00000ae0| 66 20 43 68 65 73 73 50 | 69 65 63 65 3b 0d 09 09 |f ChessP|iece;...|
|00000af0| 0d 09 70 72 6f 63 65 64 | 75 72 65 20 46 69 6e 64 |..proced|ure Find|
|00000b00| 4c 65 67 61 6c 43 68 65 | 73 73 4d 6f 76 65 73 28 |LegalChe|ssMoves(|
|00000b10| 20 6e 75 6d 50 72 69 6f | 72 4d 6f 76 65 73 3a 20 | numPrio|rMoves: |
|00000b20| 55 49 6e 74 33 32 3b 20 | 76 61 72 20 70 72 69 6f |UInt32; |var prio|
|00000b30| 72 4d 6f 76 65 73 3a 20 | 43 68 65 73 73 4d 6f 76 |rMoves: |ChessMov|
|00000b40| 65 41 72 72 61 79 3b 0d | 09 09 76 61 72 20 6e 75 |eArray;.|..var nu|
|00000b50| 6d 50 69 65 63 65 73 52 | 65 6d 61 69 6e 69 6e 67 |mPiecesR|emaining|
|00000b60| 3a 20 55 49 6e 74 33 32 | 3b 20 76 61 72 20 70 69 |: UInt32|; var pi|
|00000b70| 65 63 65 73 52 65 6d 61 | 69 6e 69 6e 67 3a 20 43 |ecesRema|ining: C|
|00000b80| 68 65 73 73 50 69 65 63 | 65 41 72 72 61 79 3b 0d |hessPiec|eArray;.|
|00000b90| 09 09 76 61 72 20 6e 75 | 6d 4c 65 67 61 6c 4d 6f |..var nu|mLegalMo|
|00000ba0| 76 65 73 3a 20 55 49 6e | 74 33 32 3b 20 76 61 72 |ves: UIn|t32; var|
|00000bb0| 20 6c 65 67 61 6c 4d 6f | 76 65 73 3a 20 43 68 65 | legalMo|ves: Che|
|00000bc0| 73 73 4d 6f 76 65 41 72 | 72 61 79 29 3b 0d 09 0d |ssMoveAr|ray);...|
|00000bd0| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 0d 0d |implemen|tation..|
|00000be0| 2f 2f 20 46 69 6c 6c 20 | 69 6e 20 79 6f 75 72 20 |// Fill |in your |
|00000bf0| 73 6f 6c 75 74 69 6f 6e | 20 61 6e 64 20 74 68 65 |solution| and the|
|00000c00| 6e 20 73 75 62 6d 69 74 | 20 74 68 69 73 20 66 6f |n submit| this fo|
|00000c10| 6c 64 65 72 0d 0d 2f 2f | 20 54 65 61 6d 20 4e 61 |lder..//| Team Na|
|00000c20| 6d 65 3a 20 46 49 4c 4c | 20 49 4e 20 59 4f 55 52 |me: FILL| IN YOUR|
|00000c30| 20 54 45 41 4d 20 4e 41 | 4d 45 21 0d 0d 65 6e 64 | TEAM NA|ME!..end|
|00000c40| 2e 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000c90| 2b 30 38 30 30 31 35 3a | 35 35 3a 33 32 20 31 39 |+080015:|55:32 19|
|00000ca0| 39 38 00 00 00 00 00 00 | 00 00 b1 78 6a 77 00 00 |98......|...xjw..|
|00000cb0| 0a 53 6f 6c 75 74 69 6f | 6e 2e 70 4d 61 63 48 61 |.Solutio|n.pMacHa|
|00000cc0| 63 6b 20 43 6f 6e 74 65 | 73 74 31 2e 73 69 74 69 |ck Conte|st1.siti|
|00000cd0| 02 4a 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |.JPartSI|T!......|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 b1 b0 40 8d 00 00 | 00 00 00 00 01 9a 00 00 |....@...|........|
|00000d00| 00 00 29 bc 7f 92 00 00 | 00 00 20 52 65 3a 20 46 |..).....|.. Re: F|
|00000d10| 6f 6c 64 65 72 20 48 69 | 65 72 61 72 63 68 79 20 |older Hi|erarchy |
|00000d20| 44 75 70 6c 69 63 61 74 | 69 6f 6e 0d 00 00 00 00 |Duplicat|ion.....|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 04 36 35 37 a4 00 00 |........|..657...|
|00000d50| 00 00 00 00 00 00 00 00 | 00 01 be ab 00 00 05 f2 |........|........|
|00000d60| 00 00 02 90 02 07 31 32 | 2f 35 2f 39 38 34 30 30 |......12|/5/98400|
|00000d70| 30 32 31 3a 30 31 3a 35 | 36 20 31 39 39 38 00 00 |021:01:5|6 1998..|
|00000d80| 00 00 00 48 00 0a 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 02 | 00 02 00 72 00 12 02 0c |........|...r....|
|00000db0| 02 88 00 72 00 12 02 0c | 02 88 b1 ae af 1f 00 00 |...r....|........|
|00000dc0| 0a dd 00 00 0a dd 00 00 | 09 1d 01 00 00 00 00 04 |........|........|
|00000dd0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000de0| 00 00 00 46 00 ce 0d f8 | 26 32 00 00 00 1c 00 46 |...F....|&2.....F|
|00000df0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000e00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000e10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+